using System;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk.Discovery
{
	[DataContract(Name = "OrganizationDetail", Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts/Discovery")]
	public sealed class OrganizationDetail : IExtensibleDataObject
	{
		private EndpointCollection _endpoints = new EndpointCollection();
		private Guid _organizationId;
		private string _friendlyName;
		private string _organizationVersion;
		private ExtensionDataObject _extensionDataObject;
		[DataMember]
		public Guid OrganizationId
		{
			get
			{
				return this._organizationId;
			}
			set
			{
				this._organizationId = value;
			}
		}
		[DataMember]
		public string FriendlyName
		{
			get
			{
				return this._friendlyName;
			}
			set
			{
				this._friendlyName = value;
			}
		}
		[DataMember]
		public string OrganizationVersion
		{
			get
			{
				return this._organizationVersion;
			}
			set
			{
				this._organizationVersion = value;
			}
		}
		[DataMember]
		public string UrlName
		{
			get;
			set;
		}
		[DataMember]
		public string UniqueName
		{
			get;
			set;
		}
		[DataMember]
		public EndpointCollection Endpoints
		{
			get
			{
				return this._endpoints;
			}
			internal set
			{
				this._endpoints = value;
			}
		}
		[DataMember]
		public OrganizationState State
		{
			get;
			set;
		}
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return this._extensionDataObject;
			}
			set
			{
				this._extensionDataObject = value;
			}
		}
	}
}
